<?php
if (isset($_GET['o']) &&  !empty($_GET['o']) ){
    include 'load.php';
    $openid=$_GET['o'];
    $zuopenid=$_GET['zu'];
    if ($openid == $zuopenid){
        echo json_encode(array('m'=>''));
        exit;
    }
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    if (!$mysqli->set_charset("utf8")) {}
    $query=$mysqli->query("SELECT id FROM share_log where openid='".$openid."' and zuopenid='".$zuopenid."'  limit 0,1 ");
    if($query->num_rows>0){
        
    }else{
        $mysqli->query("insert into share_log(openid,zuopenid,createtime) values('".$openid."','".$zuopenid."','".date("Y-m-d H:i:s")."')  ");
    }
     
    $mysqli->close();
    echo json_encode(array('m'=>1));
}